//
const mongoose=require("mongoose")

let schema = new mongoose.Schema({
    userName:{
        type:String,
        require:true
    },
    passWord:{
        type:String,
        require:true
    },
    isAdmin:{
        type:Boolean,
        default:false,
    }
},{
    timestamps: {
        createdAt: 'created',
        updatedAt: 'updated'
    }
});

let model =mongoose.model("user",schema);
module.exports = model;